#Makefile for chat_server
CC=g++ -Wall -g
BIN=../../../bin
INCLUDE = -I../../../dsth/ -I../
LIB = -L../../../dsth -ldsth -lpthread -Wl,-rpath=./
SRC = ../Codec.cpp\
      ../chat_server.cpp

TARGET = chat_server
OBJS := $(SRC:.cpp=.o)

all : $(OBJS)
	$(CC) -o $(TARGET) $(OBJS) $(LIB)
	-cp $(TARGET) $(BIN)

%.o:%.cpp
	$(CC) -o $@ -c $< $(INCLUDE) 

.PHONY:clean
clean:
	-rm -f $(OBJ) $(TARGET) *.o

